﻿@{
    ViewBag.Title = "Test";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using Webdiyer.WebControls.Mvc
@model PagedList<RBS.Core.Model.manager_log>

@using (Html.BeginForm("Test", "Sys", new RouteValueDictionary { { "id", "" } }, FormMethod.Get))
{
    <span>搜索关键字：</span><input type="text" name="kword" value="@Request.QueryString["kword"]" style="width:120px"/><input type="submit" value="搜索(S)" accesskey="S"/>
    <span>（请输入“吴起”或“延安”进行测试）</span>
}

<table width="100%">
    <tr>
        <th>标题</th>
        <th>发布日期</th>
        <th>作者</th>
        <th>来源</th>
    </tr>
    @foreach (var item in ViewData.Model)
    {
        <tr>
            <td align="center">
                @Html.ActionLink(item.user_name, "LogManage", new { keywords = item.user_name })
            </td>
            <td align="center">
                @Html.ActionLink(item.action_type, "LogManage", new { keywords = item.action_type })
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.remark)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.user_ip)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.add_time)
            </td>
        </tr>
    }
</table>
 
@Html.Pager(Model,new PagerOptions{PageIndexParameterName = "id",ShowPageIndexBox = true,PageIndexBoxType = PageIndexBoxType.DropDownList,ShowGoButton = false})
@section Scripts{@{Html.RegisterMvcPagerScriptResource();}}